package com.meixiang.entity.fund;

import java.io.Serializable;
import java.util.List;

/**
 * 我的基金-- 持有基金
 * Created by xyj on 2016/6/6.
 */
public class FundAccountBean implements Serializable {

    private String flow_profit_yesterday; //日盈亏
    private String flow_profit_all; // 累计盈亏
    private String trade_total_money; //总金额
    private String underway_amount_all; //待确认金额
    private String flow_profit_all_name; //累计盈亏 Title
    private String flow_profit_yesterday_name; // 日盈亏 Title
    private List<FundHoldingList> fund_holding_list; //基金数据列表

    public String getFlow_profit_yesterday() {
        return flow_profit_yesterday == null ? "" : flow_profit_yesterday;
    }

    public void setFlow_profit_yesterday(String flow_profit_yesterday) {
        this.flow_profit_yesterday = flow_profit_yesterday;
    }

    public String getFlow_profit_all() {
        return flow_profit_all == null ? "" : flow_profit_all;
    }

    public void setFlow_profit_all(String flow_profit_all) {
        this.flow_profit_all = flow_profit_all;
    }

    public String getTrade_total_money() {
        return trade_total_money == null ? "" : trade_total_money;
    }

    public void setTrade_total_money(String trade_total_money) {
        this.trade_total_money = trade_total_money;
    }

    public String getUnderway_amount_all() {
        return underway_amount_all == null ? "" : underway_amount_all;
    }

    public void setUnderway_amount_all(String underway_amount_all) {
        this.underway_amount_all = underway_amount_all;
    }

    public String getFlow_profit_all_name() {
        return flow_profit_all_name == null ? "" : flow_profit_all_name;
    }

    public void setFlow_profit_all_name(String flow_profit_all_name) {
        this.flow_profit_all_name = flow_profit_all_name;
    }

    public String getFlow_profit_yesterday_name() {
        return flow_profit_yesterday_name == null ? "" : flow_profit_yesterday_name;
    }

    public void setFlow_profit_yesterday_name(String flow_profit_yesterday_name) {
        this.flow_profit_yesterday_name = flow_profit_yesterday_name;
    }

    public List<FundHoldingList> getFund_holding_list() {
        return fund_holding_list;
    }

    public void setFund_holding_list(List<FundHoldingList> fund_holding_list) {
        this.fund_holding_list = fund_holding_list;
    }

    @Override
    public String toString() {
        return "FundAccountBean{" +
                "flow_profit_yesterday=" + flow_profit_yesterday +
                ", flow_profit_all=" + flow_profit_all +
                ", trade_total_money=" + trade_total_money +
                ", underway_amount_all=" + underway_amount_all +
                ", flow_profit_all_name='" + flow_profit_all_name + '\'' +
                ", flow_profit_yesterday_name='" + flow_profit_yesterday_name + '\'' +
                ", fund_holding_list=" + fund_holding_list +
                '}';
    }

    public static class FundHoldingList implements Serializable {

        /**
         * 卖出时带入的参数
         */
        private String id;
        /**
         * 基金id买入时带入的参数
         */
        private String fund_id;
        private String fund_name; //基金名称
        /**
         * 交易总金额
         */
        private String money;
        private String day_rate; //日涨幅
        /**
         * 昨日浮动收益
         */
        private String profit_yesterday;
        /**
         * 累计收益
         */
        private String flow_profit;
        /**
         * 基金类型0非货币基金，1货币基金
         */
        private String type;
        /**
         * 净值
         */
        private String nav;
        /**
         * 金额
         */
        private String amount_name;
        /**
         * 日收益
         */
        private String day_rate_name;
        /**
         * 累计收益
         */
        private String flow_profit_name;

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getFund_id() {
            return fund_id == null ? "" : fund_id;
        }

        public void setFund_id(String fund_id) {
            this.fund_id = fund_id;
        }

        public String getFund_name() {
            return fund_name == null ? "" : fund_name;
        }

        public void setFund_name(String fund_name) {
            this.fund_name = fund_name;
        }

        public String getMoney() {
            return money == null ? "" : money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getDay_rate() {
            return day_rate == null ? "" : day_rate;
        }

        public void setDay_rate(String day_rate) {
            this.day_rate = day_rate;
        }

        public String getProfit_yesterday() {
            return profit_yesterday == null ? "" : profit_yesterday;
        }

        public void setProfit_yesterday(String profit_yesterday) {
            this.profit_yesterday = profit_yesterday;
        }

        public String getFlow_profit() {
            return flow_profit == null ? "" : flow_profit;
        }

        public void setFlow_profit(String flow_profit) {
            this.flow_profit = flow_profit;
        }

        public String getType() {
            return type == null ? "" : type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getNav() {
            return nav == null ? "" : nav;
        }

        public void setNav(String nav) {
            this.nav = nav;
        }

        public String getAmount_name() {
            return amount_name == null ? "" : amount_name;
        }

        public void setAmount_name(String amount_name) {
            this.amount_name = amount_name;
        }

        public String getDay_rate_name() {
            return day_rate_name == null ? "" : day_rate_name;
        }

        public void setDay_rate_name(String day_rate_name) {
            this.day_rate_name = day_rate_name;
        }

        public String getFlow_profit_name() {
            return flow_profit_name == null ? "" : flow_profit_name;
        }

        public void setFlow_profit_name(String flow_profit_name) {
            this.flow_profit_name = flow_profit_name;
        }

        @Override
        public String toString() {
            return "FundHoldingList{" +
                    "id='" + id + '\'' +
                    ", fund_id='" + fund_id + '\'' +
                    ", fund_name='" + fund_name + '\'' +
                    ", money=" + money +
                    ", day_rate='" + day_rate + '\'' +
                    ", profit_yesterday='" + profit_yesterday + '\'' +
                    ", flow_profit=" + flow_profit +
                    ", type=" + type +
                    ", nav='" + nav + '\'' +
                    ", amount_name='" + amount_name + '\'' +
                    ", day_rate_name='" + day_rate_name + '\'' +
                    ", flow_profit_name='" + flow_profit_name + '\'' +
                    '}';
        }
    }
}
